package com.pet.server.bo.common;

import com.pet.framework.page.Page;
import com.pet.server.dao.common.TaskDao;
import com.pet.server.po.TaskInfo;

public class TaskService extends CommonService {
	
	private TaskDao taskDao;
	
	public void searchTaskInfo(Page page,TaskInfo task){
		taskDao.searchTaskInfo(page, task);
	}

	public void saveTaskInfo(TaskInfo task){
		saveObject(task);
	}
	public void updateTaskInfo(TaskInfo nt,TaskInfo old){
		old.setTaskBtnText(nt.getTaskBtnText());
		old.setTaskDesc(nt.getTaskDesc());
		old.setTaskGuide(nt.getTaskGuide());
		old.setTaskId(nt.getTaskId());
		old.setTaskInteger(nt.getTaskInteger());
		old.setTaskName(nt.getTaskName());
		old.setTaskTime(nt.getTaskTime());
		old.setTaskType(nt.getTaskType());
		taskDao.updateObject(old);
	}
	public TaskDao getTaskDao() {
		return taskDao;
	}

	public void setTaskDao(TaskDao taskDao) {
		this.taskDao = taskDao;
	}
	
	
	
	
}
